package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TWL_StockChange", catalog="Id")
public class TwlStockChange extends BaseEntity<TwlStockChange> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="tinyint")
	private Integer type;
	@YsField(nameDataBase="SourceId", nameJava="sourceId", typeDataBase="bigint")
	private Long sourceId;
	@YsField(nameDataBase="SourceBid", nameJava="sourceBid", typeDataBase="varchar")
	private String sourceBid;
	@YsField(nameDataBase="SourceNum", nameJava="sourceNum", typeDataBase="int")
	private Integer sourceNum;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TwlStockChange setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TwlStockChange setType(Integer type) {
		this.type = type;
		return this;
	}
	public Long getSourceId() {
		return sourceId;
	}
	public TwlStockChange setSourceId(Long sourceId) {
		this.sourceId = sourceId;
		return this;
	}
	public String getSourceBid() {
		return sourceBid;
	}
	public TwlStockChange setSourceBid(String sourceBid) {
		this.sourceBid = sourceBid;
		return this;
	}
	public Integer getSourceNum() {
		return sourceNum;
	}
	public TwlStockChange setSourceNum(Integer sourceNum) {
		this.sourceNum = sourceNum;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TwlStockChange setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TwlStockChange setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TwlStockChange setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TwlStockChange setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TwlStockChange twlStockChange(
		Integer type,
		Long sourceId,
		String sourceBid,
		Integer sourceNum,
		String remark,
		Integer status
			) {
		TwlStockChange entity = new TwlStockChange();
		entity.setType(type);
		entity.setSourceId(sourceId);
		entity.setSourceBid(sourceBid);
		entity.setSourceNum(sourceNum);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}